﻿using System;
using System.Configuration;

namespace MyGroups
{

    public static class Configuration
    {

        public static bool CachingEnabled
        {
            get
            {
                bool cachingEnabled = false;
                string configValue = ConfigurationManager.AppSettings["MG.EnableCaching"] as string;
                if (configValue != null){
                    Boolean.TryParse(configValue, out cachingEnabled);
                }
                return cachingEnabled;
            }
        }

    }

}
